 $(function() {// 初始化内容
        $('[name="status"]').bootstrapSwitch({
            onColor:"success",
            offColor:"default",
            size:"small",
            onSwitchChange:function(event,state){
                if(state==true){
                    $("#defaultSign").val("true");
                }else{
                    $("#defaultSign").val("false");
                }
            }
        });
    });

    function sumbitForm(memKey) {
        if($("#form").valid()){
            var dataJson = $("#form").serialize();
            $.ajax({
                url:"member/editMemInvoice",
                type:"post",
                data:dataJson,
                success:function(data){
                    if(data.stateID==0){
                   	 art.dialog.tips("操作成功");
                   	 var url = "home/invoice?memKey="+memKey+"&type=1";
                     window.location.href = url;
                   }else {
                   	art.dialog.tips('操作异常');
                   }
               },
               error:function(e){
               	art.dialog.tips('操作异常');
               }
            });
        }
    }
    //返回列表页
    function  _backList(memKey) {
        window.location.href = "home/invoice?memKey="+memKey+"&type=1";
    }